package com.rtx.wms.customer.grp.handler.transfer;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import com.rtx.wms.std.handler.transfer.down.AbstractTransferDownHandler;
import com.rtx.wms.std.inv.bean.Lotxlocxid;
import com.rtx.wms.std.so.bean.ApiOrders;
import com.rtx.wms.std.transer.bean.ApiTransfer;
import com.rtx.wms.std.transer.bean.ApiTransferdetail;

@Service
public class GrpTransferDownHandler extends AbstractTransferDownHandler{

	@Override
	protected void afterHandle(ApiTransfer at, String requestStr) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected ApiOrders preHandle(HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected void preinsert(ApiTransfer at, HttpServletRequest request) {
		for(ApiTransferdetail atd:at.getDetails()) {
			Lotxlocxid xx = atd.getLotxlocxid();
			atd.setFromlot(xx.getLot());
			atd.setFromloc("");
			atd.setFromid("");
			
			atd.setToloc("");
			atd.setToid("");
		}
	}
}
